package com.gb.demand.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单的 收货发货 地址表
 * </p>
 *
 * @author shenzhiwen
 * @since 2020-03-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("wemall_address")
@ApiModel(value="Address对象", description="订单的 收货发货 地址表")
public class Address extends Model<Address> implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "添加时间")
    @TableField("addTime")
    private Date addTime;

    @TableField("deleteStatus")
    private Boolean deleteStatus;

    @ApiModelProperty(value = "地址信息")
    private String areaInfo;

    @ApiModelProperty(value = "手机")
    private String mobile;

    @ApiModelProperty(value = "电话")
    private String telephone;

    @ApiModelProperty(value = "收货人姓名")
    @TableField("trueName")
    private String trueName;

    @ApiModelProperty(value = "邮编")
    private String zip;

    @ApiModelProperty(value = "区id 对应表wemall_area的主键id")
    private Long areaId;

    @ApiModelProperty(value = "地址所属用户 id，对应表wemall_user 中的主键id")
    private Long userId;

    @ApiModelProperty(value = "收货发货地址标识，1为发货地址，2为收货地址")
    private String fromOrTo;

    @ApiModelProperty(value = "新阳光公采area主键id")
    private Integer gcyAddId;

    @ApiModelProperty(value = "省")
    private String province;

    @ApiModelProperty(value = "市")
    private String city;

    @ApiModelProperty(value = "县")
    private String county;

    @ApiModelProperty(value = "街道")
    private String street;

}
